﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="School_New.aspx.cs" Inherits="HealthSystem.School_New" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
     <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="panle1" />
     <ext:Panel  runat="server" ID="panle1" Layout="Fit" ShowHeader="false">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                   <ext:Button ID="Button1" runat="server" Text="保存" OnClick="Save_Click" Icon="SystemSave" ValidateForms="form2"></ext:Button>
                   <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server"></ext:ToolbarSeparator>
                   <ext:Button runat="server" Text="关闭" Icon="SystemClose" ID="btnClose"></ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Form ID="form2"  runat="server" EnableBackgroundColor="true" ShowHeader="false" BodyPadding="10px">
                <Rows>
                    <%--<ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" Label="学校编号" ID="id" Enabled="false" Visible></ext:TextBox>
                        </Items>
                    </ext:FormRow>--%>
                     <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" Label="地区选择" ID="districtname" Readonly="true" Required="true" ShowRedStar="true"></ext:TextBox>
                            <ext:HiddenField runat="server" ID="districtid"></ext:HiddenField>
                            <ext:Button runat="server" Text="选择地区" ID="Button2"></ext:Button>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" Label="学校名称" ID="name" Required="true" ShowRedStar="true"></ext:TextBox>
                        </Items>
                    </ext:FormRow>
                     <ext:FormRow>
                        <Items>
                            <ext:CheckBox runat="server" Label="默认添加账户" Checked="true" ID="schoolcheck"></ext:CheckBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:CheckBox runat="server" Label="授权" Checked="true" ID="permitcheck"></ext:CheckBox>
                        </Items>
                    </ext:FormRow>
                     <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" Label="学校地址" ID="Address"></ext:TextBox>
                        </Items>
                    </ext:FormRow>
                     <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" Label="联系人" ID="LinkMan"></ext:TextBox>
                        </Items>
                    </ext:FormRow>
                      <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" Label="电话" ID="OfficePhone"></ext:TextBox>
                        </Items>
                    </ext:FormRow>
                      <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" Label="手机" ID="MobilePhone"></ext:TextBox>
                        </Items>
                    </ext:FormRow>
                       <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" Label="Email" ID="Email"></ext:TextBox>
                        </Items>
                    </ext:FormRow>
                      <ext:FormRow>
                        <Items>
                            <ext:DropDownList runat="server" ID="stype">
                            <ext:ListItem Text="小学" Value="小学" />
                            <ext:ListItem Text="初中" Value="初中" />
                            <ext:ListItem Text="高中" Value="高中"/>
                            <ext:ListItem Text="完中" Value="完中"/>
                            </ext:DropDownList>
                            <%--<ext:TextBox runat="server" Label="学校类型" ID="SchoolType"></ext:TextBox>--%>
                        </Items>
                    </ext:FormRow>
                      <ext:FormRow>
                        <Items>
                            <ext:TriggerBox runat="server" Label="机构" ID="TextBox2" EnableEdit="false"></ext:TriggerBox>
                            <%--<ext:TextBox runat="server" Label="机构" ID="TextBox2ff" Readonly="true"></ext:TextBox>--%>
                            <ext:HiddenField runat="server" ID="orgcode"></ext:HiddenField>
                            <%--<ext:Button runat="server" Text="选择体检机构" ID="choosebt"></ext:Button>--%>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
        </Items>
    </ext:Panel>
     <ext:Window ID="Window1" CloseAction="HidePostBack" runat="server" IsModal="true" Hidden="true" Target="Top"
        EnableResize="false"  EnableIFrame="true" IFrameUrl="about:blank" EnableMaximize="false"
        Width="650px" Height="450px">
    </ext:Window>
      <ext:Window ID="Window2" CloseAction="HidePostBack" runat="server" IsModal="true" Hidden="true" Target="Top"
        EnableResize="false"  EnableIFrame="true" IFrameUrl="about:blank" EnableMaximize="false"
        Width="200px" Height="550px">
    </ext:Window>
    </form>
</body>
</html>
